package com.deco.back.controller;

import com.deco.back.utils.LoginUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ValueConstants;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

@Controller
public class IndexController {

    @RequestMapping(value={"/","/index"})
    public ModelAndView root(HttpServletRequest request){

        ModelAndView mv = new ModelAndView("login");
        LoginUtil.rsaInit(request);

        return mv;
    }

}
